import { PartialType } from '@nestjs/mapped-types';
import { CreateUserDto } from './create-user.dto';
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class UpdateUserDto extends PartialType(CreateUserDto) {
  @ApiProperty({ description: '用户ID' })
  @IsNotEmpty()
  id: string;

  @ApiProperty({ description: '用户菜单' })
  menus?: (string | number)[];


  @ApiProperty({ description: '解封或者封禁用户 0封1解' })
  type?: (string | number)

  @ApiProperty({ description: '用户封禁时间' })
  time?: (string | number)
}
